package oracle.apps.financials.collection.po;


import android.content.Context;
import android.view.ViewGroup;
import android.view.View.OnClickListener;

import com.cyrilmottier.android.greendroid.R;

public class DetailItem extends SubtextItem {

	public OnClickListener onClickListener;

	public boolean isShowDetailButton = true;
	

	public DetailItem(String text, String subtext, OnClickListener onClickListener) {
		super(text, subtext);
		this.onClickListener = onClickListener;
		this.isShowDetailButton = true;
		this.enabled=true;
	}

	public DetailItem(String text, String subtext, boolean isShowDetailButton) {
		super(text, subtext);
		this.isShowDetailButton = isShowDetailButton;
		this.enabled=isShowDetailButton;	
	}
	
	public DetailItem(String text, String subtext,int textColor, OnClickListener onClickListener) {
		this(text, subtext,onClickListener);
		this.textColor= textColor;
	}
	
	public DetailItem(String text, String subtext) {
		this(text, subtext,true);
	}

	@Override
	public ItemView newView(Context context, ViewGroup parent) {
		ItemView ItemView = createCellFromXml(context, R.layout.detail_list_item, parent);
		return ItemView;
	}

}
